package com.jigu.core.properties;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;

import java.io.Serializable;

/*
 * 自定义配置文件的解析类
 */
@Configuration
@ConfigurationProperties(prefix = "jwt.info")
@PropertySource(value = "classpath:/config/jwt.properties",ignoreResourceNotFound = true)
@Component
@Data
public class JwtInfo implements Serializable{

	private String clientId;

    private String base64Secret;

    private String name;

    private int expiresSecond;

}
